@import '@/app/styles/variables';

.icon_settings {
  cursor: pointer;
  border-radius: 12px;
  background: #f3f3f3;
  fill: #f3f3f3;
  &:hover {
    background: #e1e1e1;
    fill: #e1e1e1;
  }
}

.search {
  position: relative;
  cursor: text;
  display: flex;
  flex: 1 0 0;
  height: 48px;
  padding: 12px 24px;
  align-items: center;

  gap: 8px;
  border-radius: 100px;
  background: var(--simple-gray-morning, #f3f3f3);
  transition: $transition-default-time max-width $transition-default-type;
}

.input {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  padding: 12px 54px;
  width: 100%;
  left: 0;
  top: 0;
  display: flex;
  color: var(--simple-night, #000);
  font-size: 16px;
  height: 100%;
  font-weight: 400;
  line-height: 22px; /* 137.5% */
}
.loader {
  position: static;
}
.search_icon {
  all: unset;
  position: absolute;
  left: 24px;
  height: 22px;
  width: 22px;
}

.search_clear {
  all: unset;
  position: absolute;
  right: 24px;
  top: 16px;
}
.search_clear_button {
  all: unset;
  cursor: pointer;
  svg path {
    transform: scale(1.2);
  }
  &:hover {
    svg path {
      stroke: #ababab;
    }
  }
}

@include media(sm) {
  .search {
    border-radius: 12px;
    height: 40px;
    &_icon {
      height: 20px;
      width: 20px;
    }
  }
  .input {
    top: unset;
    padding: 10px 44px;
    font-size: 14px;
    line-height: 20px; /* 142.857% */
  }
  .search_icon {
    left: 16px;
    transform: scale(0.83333333333);
  }
  .search_clear {
    transform: scale(0.85);
    right: 16px;
    top: 11px;
  }
}

@include media(xs) {
  .sort_mobile {
    font-size: 14px;
    line-height: 20px; /* 142.857% */
  }
}
